@import "common";

.edit-box {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 5px rgba(0, 0, 0, .1);
}

// 标题区域
.edit-title-box {
  border-bottom: 1px solid #f8f8f8;

  &:hover {
    input {
      background-color: @theme-hover-color;
      border-radius: 10px;
    }
  }

  input {
    height: 60px;
    width: 100%;
    font-size: 20px;
    border: 0;
    outline: 0;
    text-align: center;
    transition: all .15s linear;
  }
}

// 添加问题区域
.edit-question-box {
  padding: 20px;
  border-radius: 10px;
  transition: all .15s linear;

  .edit-question-button {
    border-radius: 5px;
  }

  &:hover {
    border-radius: 10px;
    background-color: @theme-hover-color;

    .edit-question-button {
      border-radius: 5px;
      background-color: @theme-hover-color;
    }
  }

  .choose-question-type {
    visibility: hidden;
    opacity: 0;
    transition: all .2s linear;
    border-radius: 5px;
    height: 0;
    border: 0.5px solid #eee;
    border-bottom: 0;

    .question-btn-list {
      margin-top: 35px;
      text-align: center;
    }

    button {
      background-color: #f8f8f8;
      font-weight: normal;
      color: #888;
      margin: 0 5px;
      transition: all .15s ease;

      &:hover {
        background-color: @theme-color;
        color: #fff;
      }
    }
  }

  .edit-question-button {
    width: 100%;
    height: 100px;
    background-color: #f8f8f8;
    text-align: center;
    line-height: 100px;
    color: #707070;
    cursor: pointer;
    border: 1px solid #eee;
    transition: all .15s linear;
  }
}

// 操作区域（保存，发布...)
.edit-operation-box {
  padding: 20px;

  .edit-date-box {
    position: relative;

    span,
    input {
      vertical-align: middle;
    }

    span {
      font-size: 14px;
      color: #666;
    }

    input {
      width: 100px;
      height: 30px;
      text-align: center;
      border-radius: 5px;
      border: 2px solid #ccc;
      outline: 0;
      margin-left: 5px;
      font-weight: 800;
      font-family: sans-serif;
      color: #333;
    }
  }

  .edit-save-box {
    .btn-save {
      margin-right: 15px;
    }
  }
}

// 问题列表区域
.question-list-box {
  .question-list {
    .question-item {
      padding: 20px;
      position: relative;
      border-radius: 10px;
      transition: all .15s linear;

      &:hover {
        background-color: @theme-hover-color;
      }
    }
  }
}

.title-box {
  margin: 15px 0;
  color: #555;

  .question-number {
    font-weight: 800;
    margin-right: 5px;
  }

  .question-type {
    font-weight: 800;
  }

  .question-necessary {
    float: right;
    color: #707070;
    font-size: 14px;
  }
}

.question-title {
  width: 100%;
  padding-left: 34px;
  margin-bottom: 10px;
  margin-right: 32px;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 16px;
  font-weight: 800;
  font-family: sans-serif;
}

.item-list {
  margin-left: 28px;
  line-height: 2;
  margin-bottom: 15px;

  input[type="radio"],
  input[type="checkbox"] {
    margin-left: 10px;
    margin-right: 0;
  }

  .up-question {
    margin-left: 5px;
  }

  .add-question,
  .del-question,
  .up-question,
  .down-question {
    .iconfont {
      font-size: 18px;
      color: #a8a8a8;
    }
  }

  .question-item-input {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    width: calc(100% - 130px);
  }
}

.operation-list {
  position: absolute;
  right: 20px;
  bottom: 20px;

  li {
    float: left;
    font-size: 14px;
    margin: 0 5px;
    padding: 5px 0;
    cursor: pointer;
    color: #8b8b8b;

    .iconfont {
      font-size: 14px;
    }

    &:hover {
      color: @theme-color;
    }
  }
}

.operation-insert {
  position: relative;

  &:hover {
    .insert-list {
      visibility: visible;
      opacity: 1;
    }
  }
}

.insert-list {
  width: 80px;
  position: absolute;
  top: -105px;
  left: -20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, .1);
  visibility: hidden;
  opacity: 0;
  transition: all .15s linear;
  z-index: 99999;

  li {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 10px 0;

    &:hover {
      .iconfont {
        color: @theme-color;
      }
    }

    .iconfont {
      color: #a7a7a7;
    }
  }
}

.question-textarea {
  width: 50%;
  height: 150px;
  outline: 0;
  font-size: 15px;
  padding: 5px;
  font-family: sans-serif;
  border-radius: 5px;
  resize: none;
  margin-left: 32px;
  border: 2px solid #ccc;
  background: transparent;
}

// 日历样式
#calendar {
  width: 280px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  font-family: sans-serif;
  position: absolute;
  bottom: 40px;
  visibility: hidden;
  opacity: 0;
  transition: all .15s linear;
  z-index: 9999;
}

.date-list ul {
  width: 100%;
  font-family: arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
}

.date-list ul li {
  width: 40px;
  height: 40px;
  line-height: 40px;
  list-style-type: none;
  display: block;
  box-sizing: border-box;
  float: left;
  text-align: center;
  font-size: 12px;
}

.lightgrey {
  color: #a8a8a8;
}

.theme-color {
  color: #007bff;
}

.active {
  background: rgba(67, 157, 255, 0.05);
}

.calendar-title-box {
  position: relative;
}

#calendar-title,
#calendar-year {
  text-align: center;
  margin: 0;
}

#calendar-title {
  font-size: 16px;
  padding: 15px 0 10px;
  font-weight: 800;
}

#calendar-year {
  font-size: 14px;
  padding: 0 0 5px;
}

#prev,
#next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #007bff;
  font-weight: 800;
}

#prev {
  left: 30px;
}

#next {
  right: 30px;
}

#days li {
  cursor: pointer;
}

#days li:hover {
  background: rgba(67, 157, 255, 0.05);
}

.prev-day,
.next-day {
  background-color: rgba(128, 128, 128, 0.03);
  color: #ccc;
}

.bg {
  opacity: .5;
}